# $Id: PKGBUILD 68313 2012-03-21 10:57:29Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: pressh <pressh at gmail dot com>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>

pkgname=gsopcast
pkgver=0.4.0
pkgrel=5
pkgdesc="A GTK front-end of p2p TV sopcast"
arch=('i686' 'x86_64')
url="http://code.google.com/p/gsopcast/"
license=('GPL')
depends=('sopcast' 'gtk2' 'alsa-lib')
makedepends=('perl-xml-parser' 'pkgconfig')
source=("http://gsopcast.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2")
md5sums=('65e4f09d714455df809a58c12a76749f')
                  
build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  echo "#include <string.h>" >> ./src/header.h

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
}
